<cfif #close# eq 1>
	<cfquery name = "close" datasource = "exp">
		UPDATE experiment
		SET live = 0 
		WHERE id= #id#
	</cfquery>
	<cfset session.message = "Experiment #id# has been stopped.">
<cflocation url="/ecada/viewexp/expView.cfm?id=#id#">
<cfelse>
	<cfquery name = "open" datasource = "exp">
		UPDATE experiment
		SET live = 1
		WHERE id= #id#
	</cfquery>
	<cfset session.message = "Experiment #id# has been resumed.">
<cflocation url="/ecada/viewexp/expView.cfm?id=#id#">
</cfif>


